#!/bin/bash
# install kvm base and kde desktop from centos7 64bit mini install

##see also for init setting shell for centos7 https://gitee.com/jack2zhang/base7
##and also for pxe auto install centos7 and centos6
##

yum install -y net-tools vim gcc gcc-c++ lrzsz ntpdate lsof wget git mtr nc telnet nmap traceroute 
yum install -y dejavu-lgc-sans-fonts
yum install -y qemu-kvm libvirt virt-manager virt-viewer tigervnc-server tigervnc xauth xsetroot xterm dejavu-fonts-common ghostscript-fonts libguestfs-tools 
yum groupinstall -y 'KDE'
rpm -e initial-setup initial-setup-gui
service libvirtd start
systemctl enable libvirtd

gsettings set org.gnome.desktop.screensaver lock-delay 0
gsettings set org.gnome.desktop.screensaver lock-enabled false
#virsh iface-bridge eth0 br0

#vncserver
##INPUT PASSWD FOR VNC
#start vncserver
#vncserver :1

#stop vncserver
#vncserver -kill  :1

#virt-clone -o w5.82 -n w9.100 -f /var/lib/libvirt/images/w9.100.qcow2
